package java_book;

public class KyungYeon_jv_3_6 {

	public static void main ( String[] args ) {
		
		int x = 7, y = 2;
		int a, b;
		a = 7;
		b = 2;
		
		System.out.println("***** result *****");
		
		System.out.println("x = "+ x + ",y = "+ y); // x=7, y=2
		System.out.println("a = "+ a + ",b = "+ b); // a=7, b=2
		
		System.out.println("x += y -> "+ (x+=y) + 
				",a = a+b -> "+ (a=a+b));			// x=9, a=9 
		System.out.println("x -= y -> "+ (x-=y) + 
				",a = a-b -> "+ (a=a-b));			// x=7, a=7
		
		System.out.println("x/=y -> " + (x/=y) +
				", a=a/b -> "+ (a=a/b));			// x=3, a=3
		System.out.println("x%=y -> " + (x%=y) +	
				", a=a%b -> "+ (a=a%b));			// x=1, y=1
		
	}
}
